package com.mldong.modules.sys.vo;

import cn.hutool.core.lang.Dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mldong.modules.sys.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "UserVO对象", description = "用户VO")
public class UserVO extends User {
    @ApiModelProperty(value = "岗位名称")
    private String postName;
    @ApiModelProperty(value = "所属角色id，多个使用英文逗号分割")
    private String roleIds;
    @ApiModelProperty(value = "扩展信息")
    private Dict ext = Dict.create();
    @ApiModelProperty(value = "部门名称")
    private String deptName;
    @ApiModelProperty(value = "角色名称集合")
    private List<String> roleNames;
    @ApiModelProperty(value = "上次登录的时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date lastLoginTime;
}
